<style type="text/css">
.carousel-inner .item img{
	max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
	height:82px;
}
.star-rate {margin-left:0}
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
</style>

<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
    <div class="fui-content" style="margin-bottom:2.2rem">
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active':pagedata.type == 0}" href="javascript:" ng-click="tool.get_list('jy_edu/worker_list/getlist/type=0',true);pagedata.type=0">我校</a>
        <a ng-class="{'external active':pagedata.type == 1}" href="javascript:" ng-click="tool.get_list('jy_edu/worker_list/getlist/type=1',true);pagedata.type=1">他校</a>
    </div>
	<div class="sort" style="top:0.2rem">
		<div class="fui-list-group usergroup" ng-repeat="item in pagedata.list">
            <div class="fui-list">
                <div class="fui-list-media userlogo" href="javascript:;" ng-click="access_json('jy_edu/worker_list/detail/id='+item.id)">
                    <img class="round" ng-src="{{tomedia(item.headimg) || '../core/resource/images/nopic.jpg'}}">
                </div>
               <div class="fui-list-inner userinfo" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_edu/worker_list/detail/id='+item.id)">
                    <div class="title" style="font-size:0.76rem;"><span>{{item.name}}</span><span style="float:right;color:red;font-size:0.65rem">{{item.classttile || '无班'}}</span></div>
					<div class="subtitle" style="-webkit-line-clamp:2;font-size:0.65rem">
						{{item.remark || '该老师还未来的及填写个人简介'}}
					</div>
					<div class="store-star">资历<span style="margin-left:0.2rem">{{item.years ||'0'}}年</span></div>
					<div class="subtitle" style="font-size:0.55rem">
						学校：{{item.storetitle || '无'}}
					</div>
					<div class="subtitle" style="font-size:0.55rem">
						课程：{{item.lessontitle || '无'}}
					</div>
					<div class="weui_btn_all_sm" style="background:#4491F1" href="javascript:" ng-click="access_json('jy_edu/worker_list/detail/id='+item.id)">详情资历</div>
                </div>
            </div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有老师！</p>
		</div>
	</div>
</div>
</div>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='detail'">
<style>
.fui-block {margin:0.2rem 2rem;padding: 0.1rem;min-height:5rem;background-color: #f2f2f2;border-radius: 10px;text-align:center;line-height:1.2rem}
</style>
    <div class="fui-content" style="margin-bottom:2.2rem">
		<!--状态-->
			<div class="order_header" style="padding-top: .76rem; margin-bottom: -.266667rem;">
			  <div style="width:4rem;margin:0.5rem auto;">
				 <img class="img-circle" style="width:4rem;height:4rem;" ng-src="{{tomedia(pagedata.item.headimg) || '../core/resource/images/nopic.jpg'}}">
			  </div>
			  <div ng-if="!pagedata.item.id" class="red" style="width:2.6rem;margin:0 auto">
				<i class="icon icon-wrong" style="font-size:2.6rem"></i>
			  </div>
			  <div class="order_detail_ststus c" style="padding:0.3rem;background:none">
					<div class="bold">
						<div style="font-size: 0.85rem;">{{pagedata.item.name}} <span class="subtitle">资历：{{pagedata.item.years}}年</span></div>
					</div>
					<div class="subtitle">{{pagedata.item.remark || '该老师还未来的及填写个人简介'}}</div>
					<div class="text">班级：{{pagedata.item.classgroup.title || '无'}}({{pagedata.item.class.title || '无'}})</div>
					<div class="text">课程：{{pagedata.item.lesson.title || '无'}}</div>
					<div class="fui-block" style="display: block;">
						<p>{{pagedata.item.desc || '无描述'}}</p>
					</div>
					<div class="fui-block" style="display: block;">
						<p class="content-block content-images" ng-bind-html="trust(pagedata.item.show)"></p>
					</div>
			  </div>
			</div>
			<div ng-if="pagedata.item.lessonid" class="weui_btn_area" style="margin:0 3rem">
				 <a class="weui_btn weui_btn_primary" href="javascript:"  ng-click="access_json('jy_edu/lesson_detail//id='+pagedata.item.lessonid);">报名该老师课程</a>
			</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.loading = true;
scope.pagedata.type=0	
scope.tool.get_list('jy_edu/worker_list/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_edu/worker_list/getlist/type='+scope.pagedata.type);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>